<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class TSnmpInfo extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('t_snmp_info', function (Blueprint $table) {
             $table->engine = 'MyISAM';
             $table->charset = 'utf8';
             $table->collation = 'utf8_general_ci';
            // CONTENT
            $table->integer('si_index')->nullable(false)->default(0)->comment('');
			$table->integer('si_typeid')->nullable()->default(null)->comment('');
			$table->string('si_oidobject', 128)->nullable()->default(null)->comment('');
			$table->string('si_realdataname', 128)->nullable()->default(null)->comment('');
			$table->string('si_realdatadesc', 128)->nullable()->default(null)->comment('');
			$table->decimal('si_adjustk', 2, 1)->nullable()->default(null)->comment('');
			$table->integer('si_adjustb')->nullable()->default(null)->comment('');
			$table->integer('si_Type_table')->nullable()->default(0)->comment('');
			$table->primary('si_index');
			
        });

        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('t_snmp_info');
    }
}
